a = input()[0]
b = ord(a)
print(b)